
package org.display.graphic
{
	import flash.display.Sprite;
	import flash.events.*;
	
	import mx.flash.UIMovieClip;
	import flash.ui.ContextMenu;
	import flash.ui.ContextMenuItem;
	import flash.events.*;
	
	import flash.utils.*
	import flash.geom.*
		
	
	public class Mc extends ShapeBase
	{
		public function Mc()
		{
			super()
			redraw(100,100)
			
			
			createMenuItems(["重命名","复制","最上层","最下层","删除"])
			
			setTimeout(function(){var rec:Rectangle=getBounds(parent)
				hitRec.x=rec.width-10
				hitRec.y=rec.height-10
			},100)
		
		}

		public override function redraw(w:Number,h:Number){
			
			graphics.clear()
			graphics.lineStyle(linethick,linecolor,linealpha)
			graphics.beginFill(0xD9D9D9,fillalpha)
			graphics.drawRect(0,0,w,h)
			graphics.endFill()
				
			
		}
		

	}
}